
#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "BornPoint.generated.h"


// 出生点
UCLASS()
class TAFANG2_API ABornPoint : public AActor
{
	GENERATED_BODY()

	UPROPERTY(EditAnywhere, meta=(AllowPrivateAccess=true))
	class ASignpost* NextPoint;

	UPROPERTY(EditAnywhere, meta=(AllowPrivateAccess=true))
	TSubclassOf<class AEnemyZDCharacter> EnemyClass;

	UPROPERTY(EditAnywhere, meta=(AllowPrivateAccess=true))
	int SpawnEnemyTotal= 10;

	UPROPERTY(EditAnywhere, meta=(AllowPrivateAccess=true))
	float SpawnEnemyInterval = 3.0f;
	
	float Timer = 0.0f;
	

	int EnemyCount = 0;
public:	
	ABornPoint();
	virtual void BeginPlay() override;
	virtual void Tick(float DeltaTime) override;

	
};
